// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from 'D:/projects/react-cmb/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": require('D:/projects/react-cmb/src/layouts/BlankLayout').default,
    "routes": [
      {
        "path": "/login",
        "component": require('D:/projects/react-cmb/src/pages/Login').default,
        "exact": true
      },
      {
        "path": "/",
        "component": require('D:/projects/react-cmb/src/layouts/SecurityLayout').default,
        "routes": [
          {
            "path": "/",
            "component": require('D:/projects/react-cmb/src/layouts/BasicLayout').default,
            "routes": [
              {
                "path": "/",
                "redirect": "/welcome",
                "exact": true
              },
              {
                "path": "/welcome",
                "name": "welcome",
                "icon": "smile",
                "component": require('D:/projects/react-cmb/src/pages/Welcome').default,
                "exact": true
              },
              {
                "name": "list.table-list",
                "icon": "table",
                "path": "/list",
                "component": require('D:/projects/react-cmb/src/pages/ListTableList').default,
                "exact": true
              },
              {
                "name": "活动管理",
                "icon": "table",
                "path": "/activity",
                "exact": true,
                "component": require('D:/projects/react-cmb/src/pages/Activity').default
              },
              {
                "name": "test",
                "icon": "table",
                "path": "/test",
                "exact": true,
                "component": require('D:/projects/react-cmb/src/pages/Test').default
              },
              {
                "exact": true,
                "path": "/activity/createadd",
                "component": require('D:/projects/react-cmb/src/pages/Activity/CreateAdd').default
              },
              {
                "exact": true,
                "path": "/activity/details",
                "component": require('D:/projects/react-cmb/src/pages/Activity/Details').default
              },
              {
                "component": require('D:/projects/react-cmb/src/pages/404').default,
                "exact": true
              }
            ]
          },
          {
            "component": require('D:/projects/react-cmb/src/pages/404').default,
            "exact": true
          }
        ]
      }
    ]
  },
  {
    "component": require('D:/projects/react-cmb/src/pages/404').default,
    "exact": true
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
